package com.qikux.service;

import com.qikux.entity.Resource;
import com.qikux.entity.ResourceComment;
import com.qikux.entity.ResourceType;
import com.qikux.vo.Page;
import com.qikux.vo.ResultVo;

import java.util.List;
import java.util.Map;

public interface ResourceService {

    /**
     * 查询所有的资源类型
     * @return
     */
    ResultVo<List<ResourceType>> queryTypes();

    ResultVo<String> saveResource(Resource res);

    ResultVo<List<ResourceType>> queryReses(String pid);

    ResultVo<Page<Map<String, Object>>> queryHot(int i, Page<Map<String, Object>> pageBean);

    ResultVo<String> saveResComment(ResourceComment resourceComment);

    ResultVo<Page<Map<String, Object>>> queryRes(int id,Page<Map<String, Object>> pageBean);

    ResultVo<Page<Map<String, Object>>> queryFuzzy(String fname, Page<Map<String, Object>> pageBean);

    /*ResultVo<List<ResourceType>> queryHot(int i);*/
    ResultVo<List<Resource>> findresources(Long userId);
}
